package 责任链模式;

public class TeamLeader extends Handler{
    public TeamLeader(Handler next) {
        super(next);
    }

    @Override
    public void handler(Request req) {
        System.out.println("组长同意");
        if (req.getDays()>1){
            next.handler(req);
        }
    }
}
